/**
 * @ProjectName:designPatern
 * @Title: EagerSingleton
 * @Package _01singlePattern
 * @Description: 饿汉式加载
 * @author SuShuChao
 * @date 2025/5/22 21:45
 * @version V1.0
 * Copyright (c) 2025, 2034279227@qq.com All Rights Reserved.
 */
package _01singlePattern;

/**
 * @author sushuchao
 * @data 2025/5/22 21:45
 * @description:
 */
public class EagerSingleton {
    private static EagerSingleton instance = new EagerSingleton();

    private EagerSingleton() {}

    public static EagerSingleton getInstance() {
        return instance;
    }
}

